/**
 * 请求统一管理
 */
import Request from '../common/request';

let api = {}


api.getTableData = data => Request.post('/table/list', data);

api.getTableData5 = data => Request.post('/table5/list', data);

api.editTable = data => Request.post('/table/edit', data);

api.delTable = data => Request.post('/table/del', data);

api.addTable = data => Request.post('/table/add', data);

api.login = data => Request.post('/user/login', data);


api.getUserList = data => Request.post('/user/list', data);

api.addUser = data => Request.post('/user/add', data);

api.getRoleList = data => Request.post('/role/list', data);

api.addRole = data => Request.post('/role/add', data);

api.getRoleListAll = data => Request.post('/role/all', data);

api.getMenuList = data => Request.post('/menu/list', data);

api.addMenu = data => Request.post('/menu/add', data);

api.getJurisdiction = data => Request.post('/user/getJurisdiction', data);

api.editRole = data => Request.post('/role/edit', data);














export default api
